package com.company.oa.announcement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.company.oa.announcement.entity.AnnouncementAttachment;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface AnnouncementAttachmentService extends IService<AnnouncementAttachment> {
    
    Long uploadAttachment(MultipartFile file, Long announcementId, Long uploaderId, String uploaderName);
    
    List<AnnouncementAttachment> getByAnnouncementId(Long announcementId);
    
    boolean deleteAttachment(Long id);
} 